package com.jx.lcs.user.entity;

import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/** 
 * 理财师用户
 * @author JiaYY 
 * @date 2015年7月15日
 */
@Entity
@Table(name = "tb_user_info")
@DynamicInsert
@DynamicUpdate
public class UserInfo implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID", unique = true, nullable = false)
	private String id;
	 
	@Column(name = "UID",insertable = false,updatable = false)
	private String uid;
	
	@Column(name = "JXID")
	private String jxId;
	
	@Column(name = "USERNAME")
	private String userName;
	
	@Column(name = "USERDEPT")
	private String userDept;
	
	@Column(name = "SEX")
	private String sex;
	@Column(name = "CITY")
	private String city;

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "TELEPHONE")
	private String telephone;
	
	@Column(name = "EMAIL")
	private String email;
	
	@Column(name = "HEADIMG")
	private String headImg;
	
	@Column(name = "POSTLEVEL")
	private String postLevel;
	
	@Column(name = "STARLEVEL")
	private Float starLevel;
	
	@Column(name = "PRAISERATE")
	private Float praiseRate;
	
	@Column(name = "SERVICEATTITUDE")
	private Float serviceAttitude;
	
	@Column(name = "PROFESSIONDEGREE")
	private Float professionDegree;
	
	@Column(name = "PUSHSTATUS")
	private String pushStatus;

	@Column(name = "MARKETSHOW")
	private String marketShow;
	//资料审核状态，0 未认证，1正在审核，2审核通过
	@Column(name = "PROFILESTATUS")
	private String profileStatus;

	//公司
	@Column(name = "COMPANY")
	private String company;
	//工作年限
	@Column(name = "WORKYEAR")
	private String workYear;
	//客户数量
	@Column(name = "CUSTOMERNUM")
	private String customerNum;
	//资产管理规模（万元）
	@Column(name = "ASSETSIZE")
	private String assetSize;
	//帮客户增加的资产
	@Column(name = "GAININCOME")
	private String gainInCome;
	
	public String getProfileStatus() {
		return profileStatus;
	}

	public void setProfileStatus(String profileStatus) {
		this.profileStatus = profileStatus;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getWorkYear() {
		return workYear;
	}

	public void setWorkYear(String workYear) {
		this.workYear = workYear;
	}

	public String getCustomerNum() {
		return customerNum;
	}

	public void setCustomerNum(String customerNum) {
		this.customerNum = customerNum;
	}

	public String getAssetSize() {
		return assetSize;
	}

	public void setAssetSize(String assetSize) {
		this.assetSize = assetSize;
	}

	public String getGainInCome() {
		return gainInCome;
	}

	public void setGainInCome(String gainInCome) {
		this.gainInCome = gainInCome;
	}
	
	
	
//	private Employee employee;
//
////	@ManyToMany(optional = false, cascade = CascadeType.REFRESH)
////	@JoinColumn(name = "UID", referencedColumnName = "USERCODE", unique = true)
//	@ManyToOne(fetch = FetchType.LAZY)
//	@JoinColumn(name = "UID", referencedColumnName="USERCODE")
//	@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
//	public Employee getEmployee() {
//		return employee;
//	}
//
//	public void setEmployee(Employee employee) {
//		this.employee = employee;
//	}

	public String getMarketShow() {
		return marketShow;
	}

	public void setMarketShow(String marketShow) {
		this.marketShow = marketShow;
	}

	public String getLbsShow() {

		return lbsShow;
	}

	public void setLbsShow(String lbsShow) {
		this.lbsShow = lbsShow;
	}

	@Column(name = "LBSSHOW")
	private String lbsShow;
	
	public String getPushStatus() {
		return pushStatus;
	}

	public void setPushStatus(String pushStatus) {
		this.pushStatus = pushStatus;
	}

	@Column(name = "CREATETIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserDept() {
		return userDept;
	}

	public void setUserDept(String userDept) {
		this.userDept = userDept;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public String getPostLevel() {
		return postLevel;
	}

	public void setPostLevel(String postLevel) {
		this.postLevel = postLevel;
	}

	public Float getStarLevel() {
		return starLevel;
	}

	public void setStarLevel(Float starLevel) {
		this.starLevel = starLevel;
	}

	public Float getPraiseRate() {
		return praiseRate;
	}

	public void setPraiseRate(Float praiseRate) {
		this.praiseRate = praiseRate;
	}

	public Float getServiceAttitude() {
		return serviceAttitude;
	}

	public void setServiceAttitude(Float serviceAttitude) {
		this.serviceAttitude = serviceAttitude;
	}

	public Float getProfessionDegree() {
		return professionDegree;
	}

	public void setProfessionDegree(Float professionDegree) {
		this.professionDegree = professionDegree;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getJxId() {
		return jxId;
	}

	public void setJxId(String jxId) {
		this.jxId = jxId;
	}
}
